﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="hzjg.aspx.cs" Inherits="hzjg" %>

<%@ Register Src="~/Yhkonjian/fenlei.ascx" TagPrefix="uc1" TagName="fenlei" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .auto-style1 {
            width: 100%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table class="auto-style1">
        <tr>
            <td style="width:50%">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="id" DataSourceID="LinqDataSource1">
                <Columns>
                    <asp:BoundField DataField="id" HeaderText="商品编号" InsertVisible="False" ReadOnly="True" SortExpression="id" />
                    <asp:BoundField DataField="name" HeaderText="商品名称" SortExpression="name" />
                    <asp:BoundField DataField="riqi" HeaderText="拍卖日期" SortExpression="riqi" />
                    <asp:BoundField DataField="qipai" HeaderText="起拍价" SortExpression="qipai" />
                    <asp:CommandField HeaderText="详细信息" SelectText="查看" ShowSelectButton="True" ButtonType="Button" />
                </Columns>
            </asp:GridView>
            <asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="Ershou.DAL.DataClasses1DataContext" EntityTypeName="" TableName="shangpin"></asp:LinqDataSource>
            <asp:LinqDataSource ID="Linq" runat="server" ContextTypeName="Ershou.DAL.DataClasses1DataContext" EntityTypeName="" TableName="shangpin" Where="id == @id">
                <WhereParameters>
                    <asp:ControlParameter ControlID="GridView1" Name="id" PropertyName="SelectedValue" Type="Int32" DefaultValue="1" />
                </WhereParameters>
            </asp:LinqDataSource>
            </td>
            <td style="width:50%">
                <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" DataKeyNames="id" DataSourceID="Linq" Height="50px" Width="620px">
                <Fields>
                    <asp:BoundField DataField="id" HeaderText="商品编号" InsertVisible="False" ReadOnly="True" SortExpression="id">
                    </asp:BoundField>
                    <asp:BoundField DataField="name" HeaderText="商品名称" SortExpression="name" >
                    </asp:BoundField>
                    <asp:BoundField DataField="type" HeaderText="商品类型" SortExpression="type" >
                    </asp:BoundField>
                    <asp:ImageField DataImageUrlField="image" HeaderText="商品图片">
                        <ControlStyle Height="200px" Width="200px" />
                    </asp:ImageField>
                    <asp:BoundField DataField="riqi" HeaderText="拍卖日期" SortExpression="riqi" >
                    </asp:BoundField>
                    <asp:BoundField DataField="qipai" HeaderText="起拍价" SortExpression="qipai" >
                    </asp:BoundField>
                    <asp:BoundField DataField="zengchang" HeaderText="加价幅度" SortExpression="zengchang" >
                    </asp:BoundField>
                    <asp:BoundField DataField="time" HeaderText="拍卖时长(单位:小时)" SortExpression="time" >
                    </asp:BoundField>
                    <asp:BoundField DataField="protect" HeaderText="保证金" SortExpression="protect" >
                    </asp:BoundField>
                </Fields>
                    <FooterTemplate>
                        <asp:Button ID="Button2" runat="server" Text="查看拍卖界面" Onclick="Button2_Click" Font-Size="Large" Height="39px" Width="170px"/>
                    </FooterTemplate>
            </asp:DetailsView>
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server">
    
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server">
    
    </asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="ContentPlaceHolder5" Runat="Server">
</asp:Content>
